function [value,isterminal,direction] = stop_condition_ODE(w, p ,p1)
% Usage: stop_condition_ODE(w, p ,p1)
%
% Note: This function provides the stop condition when we solve the no bank run model with an ODE method. It is in
% standard stop function format for the Matlab ODE solver.

value =   p - p1;
isterminal = (value>0);
direction =0;